package cn.com.wblog.pojo;

import java.sql.Timestamp;
import java.util.List;

import org.nutz.dao.entity.annotation.*;

@Table("wb_picture_type")
public class PictureType {
	@Column
	@Id
	private int id;
	@Column
	private int userId;
	@Column
	private String name;
	@Column
	private int parentId;
	@Column
	private String alias;
	@Column
	private String description;
	@Column
	private Timestamp createTime;
	@One(target = User.class, field = "userId")
	private User user;
	@Many(target = Picture.class, field = "typeId")
	private List<Picture> picture;

	public List<Picture> getPicture() {
		return picture;
	}
	public void setPicture(List<Picture> picture) {
		this.picture = picture;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public String getAlias() {
		return alias;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
}
